<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			#d1 {
				width: 100px;
				height: 100px;
				background-color: #000000;
			}
			#d2 {
				width: 100px;
				height: 100px;
				background-color: red;
				position: relative;
				top: -100px;
			}
			#d2:hover {
				transform: translate(50px,50px);
			}
			#d3 {
				width: 100px;
				height: 100px;
				background-color: #000000;
				transform: translateY(200px);
			}
			#d4 {
				width: 100px;
				height: 100px;
				background-color: red;
				transform: translate3d(45px);
			}
			#d5 {
				width: 100px;
				height: 100px;
				background-color: red;
				position: relative;
				top: 100px;
				transform: rotate(30deg);
			}
			#d6 {
				width: 100px;
				height: 100px;
				background-color: red;
				position: relative;
				top: 100px;
				transform: scale(0.5);
			}
			#d7 {
				width: 100px;
				height: 100px;
				background-color: red;
				position: relative;
				top: 100px;
				transform: rotate(30deg) scale(0.5) translate(100px,100px);
			}
		</style>
	</head>
	<body>
		transform
			位移：translate(50%, 100px)：x,y如果是百分比，表示自身宽或高*百分比
				
		<div id="d1">
			
		</div>
		<div id="d2">
			
		</div>
		<div id="d3">
			
		</div>
		<div id="d4">
			
		</div>
		旋转
		<div id="d5">
			
		</div>
		缩放
		<div id="d6">
			
		</div>
		混合
		<div id="d7">
			
		</div>
	</body>
</html>
